package com.hobson.design.factory.template;

/**
 * @author: haibin.tang
 * @date: 2020/8/13
 */
public class Main {

    public static void main(String[] args) {
        Message message = new Message("10008", "订单待支付", "订单有效期为30分钟, 超过30分钟后订单就会自动释放, 请及时支付");
        MessagePushHandler messagePushHandler = new WxMessagePushHandler(message);
        messagePushHandler.handle();
        System.out.println("\n");
        messagePushHandler = new AppMessagePushHandler(message);
        messagePushHandler.handle();
    }
}
